package com.managertrade.dao.sqlite.repository;

import com.managertrade.dao.sqlite.entity.StrategyTrade;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


public interface StrategyTradeRepository extends JpaRepository<StrategyTrade, Long> {
    // 查询所有未平仓交易，即 sellOrderId 为空
    List<StrategyTrade> findByStrategyIdAndProfitAmountIsNull(Long strategyId);


}